using MediatR;
using RBAC.ErrorCode;
using System;

namespace RBAC.Read.Api.Application.Command.ERP.SalesManagement.H
{
    /// <summary>
    /// 销售订单计划查询（与截图列一致）
    /// </summary>
    public class GetSalesOrderPlanListCommand : IRequest<APIResult<GetSalesOrderPlanListDto>>
    {
        /// <summary>页码</summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>每页大小</summary>
        public int PageSize { get; set; } = 10;

        /// <summary>销售员（模糊）</summary>
        public string? SalesPerson { get; set; }
        /// <summary>销售订单号（模糊）</summary>
        public string? SalesOrderNumber { get; set; }
        /// <summary>业务类型（等值或模糊）</summary>
        public string? BusinessType { get; set; }
        /// <summary>交期状态（等值）</summary>
        public string? DeliveryStatus { get; set; }
        /// <summary>物料编码（模糊）</summary>
        public string? MaterialCode { get; set; }
        /// <summary>物料名称（模糊）</summary>
        public string? MaterialName { get; set; }
        /// <summary>开始交付日期</summary>
        public DateTime? StartDeliveryDate { get; set; }
        /// <summary>结束交付日期</summary>
        public DateTime? EndDeliveryDate { get; set; }
    }
}
